﻿
using System.ComponentModel.DataAnnotations;

namespace MySite.Models
{
    public class HealthReportEntry
    {
        [Key]
        [Required]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Required]
        public HealthReport HealthReport { get; set; }

        [Required]
        [Display(Name = "Food Item")]
        public FoodItem  FoodItem{ get; set; }

        [Required]
        [Display(Name = "Quantity")]
        public int Quantity { get; set; }

        public int HealthReportID { get; set; }

        private static int _id = 0;

        public HealthReportEntry()
        {
            ID = _id++;
        }

    }
}